//
//  FooterCollectionViewCell.m
//  Mango
//
//  Created by lanou3g on 16/5/9.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "FooterCollectionViewCell.h"

@interface FooterCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *coverImageVIew;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation FooterCollectionViewCell

- (void)setModel:(recommendModel *)model {
    if (_model != model) {
        _model = model;
    }
    NSString *picStr = [model.img componentsSeparatedByString:@"!"][0];
   
    [self.coverImageVIew sd_setImageWithURL:[NSURL URLWithString:picStr] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    self.titleLabel.text = model.title;
}


#pragma mark 切换至夜间模式
-(void)updateToNightSkinMode {
    self.contentView.backgroundColor = [UIColor colorWithRed:42/255.0 green:39/255.0 blue:43/255.0 alpha:1.0];
    self.titleLabel.textColor = [UIColor grayColor];
}

- (void)awakeFromNib {
    // Initialization code
}

@end
